package com.galaxy.commom.base.jwt;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * jwt
 * @author caijinbang
 * @date 2018/10/27 16:50
 */
@Data
public class JwtToken implements AuthenticationToken {

  private String token;

  private String username;

  private String password;

  private String uid;

  public JwtToken(){

  }

  public JwtToken(String token, String username, String password) {
    this.token = token;
    this.username = username;
    this.password = password;
  }

  @Override
  public Object getPrincipal() {
    return token;
  }

  @Override
  public Object getCredentials() {
    return token;
  }
}
